<template>
	<view class="header-zindex">
		<u-navbar 
			:is-back="isBack" 
			back-text="返回" 
			:title="title" 
			:background="background" 
			:borderBottom="false" 
			title-color="#fff" 
			title-size="26"
			back-icon-size="30"
			:title-bold="true"
			back-icon-color="#fff" 
			:back-text-style="backtextstyle" 
			border-bottom="false" >
		</u-navbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// background: {
				// 	backgroundColor: '#005687',
				// },
				backtextstyle: {
					color: '#fff',
					fontSize: '26rpx',
					fontWeight:'bolder',
				},
			}
		},
		// 接受外部参数
		props: {
			background:{
				type: Object,
				default () {
					return {
						background: '#005687'
					}
				}
			},
			title: {
				type: String,
				default: '小怪OA系统'
			},
			isBack : {
				type: Boolean,
				default: true
			}
		},
	}
</script>

<style>
	.asd{
		font-weight: bold;
	}
</style>
